#!/usr/bin/env python
# -*- coding:utf-8 -*-

from .apiVersionResource import apiversion_blueprint
from .pptBaseResource import pptbase_blueprint
from .verifyCodeResource import verifycode_blueprint
from .pptChatResource import pptchat_blueprint
from .verifyMailResource import verifymail_blueprint
from .resourceResource import resource_blueprint
from .templateResource import template_blueprint
from .pptGenResource import pptgen_blueprint
from .ssoUserResource import ssouser_blueprint


def init_router(app):
    from api_1_0.apiVersionResource import apiversion_blueprint
    app.register_blueprint(apiversion_blueprint, url_prefix="/api_1_0")

    # pptBase blueprint register
    from api_1_0.pptBaseResource import pptbase_blueprint
    app.register_blueprint(pptbase_blueprint, url_prefix="/api_1_0")
    
    # verifyCode blueprint register
    from api_1_0.verifyCodeResource import verifycode_blueprint
    app.register_blueprint(verifycode_blueprint, url_prefix="/api_1_0")
    
    # pptChat blueprint register
    from api_1_0.pptChatResource import pptchat_blueprint
    app.register_blueprint(pptchat_blueprint, url_prefix="/api_1_0")
    
    # verifyMail blueprint register
    from api_1_0.verifyMailResource import verifymail_blueprint
    app.register_blueprint(verifymail_blueprint, url_prefix="/api_1_0")
    
    # resource blueprint register
    from api_1_0.resourceResource import resource_blueprint
    app.register_blueprint(resource_blueprint, url_prefix="/api_1_0")
    
    # template blueprint register
    from api_1_0.templateResource import template_blueprint
    app.register_blueprint(template_blueprint, url_prefix="/api_1_0")
    
    # pptGen blueprint register
    from api_1_0.pptGenResource import pptgen_blueprint
    app.register_blueprint(pptgen_blueprint, url_prefix="/api_1_0")
    
    # ssoUser blueprint register
    from api_1_0.ssoUserResource import ssouser_blueprint
    app.register_blueprint(ssouser_blueprint, url_prefix="/api_1_0")

    # apiKey blueprint register
    from api_1_0.apiKeyResource import apikey_blueprint
    app.register_blueprint(apikey_blueprint, url_prefix="/api_1_0")

    # document blueprint register
    from api_1_0.documentResource import document_blueprint
    app.register_blueprint(document_blueprint, url_prefix="/api_1_0")
